package com.nbjtjc.safe.mapper.emg;

import com.nbjtjc.safe.model.emg.EmgGroupMember;
import com.nbjtjc.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmgGroupMemberMapper extends MyMapper<EmgGroupMember> {

    @Select("select * from emg_group_member where group_id=#{groupId}")
    @ResultMap("BaseResultMap")
    List<EmgGroupMember> findByGroupId(@Param("groupId") int groupId);

}